//
//  DoodadUnitList.m
//  MapEdit
//
//  Created by Steven Canfield on 7/6/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "DoodadUnitList.h"


@implementation DoodadUnitList
- (id)initWithData:(NSData *)data {
	self = [super init];
	if( self ) {
		doodadCount = [data length] / sizeof( chk_thg2_t );
		doodads = malloc( [data length] );
		[data getBytes:doodads length:[data length]];
	//	NSLog( [self description] );
	}
	return self;
}

- (NSString *)description {
	return [NSString stringWithFormat:@"DoodadUnitList contains %i units", doodadCount];
}
@end
